﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DTO;
using DAO;

namespace BUS
{
    public class KetQuaBUS
    {
        public static List<KetQuaDTO> getAllResults()
        {
            return KetQuaDAO.getAllResults();
        }
        public static KetQuaDTO getResultById(int id)
        {
            return KetQuaDAO.getResultById(id);
        }
        public static List<KetQuaDTO> getResultsByAccountId(int maTaiKhoan)
        {
            return KetQuaDAO.getResultsByAccountId(maTaiKhoan);
        }
        public static List<KetQuaDTO> getResultsByQuestionId(int maCauHoi)
        {
            return KetQuaDAO.getResultsByQuestionId(maCauHoi);
        }
        public static bool insertResult(KetQuaDTO kq)
        {
            return KetQuaDAO.insertResult(kq);
        }
    }
}
